﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SCS.Core.Models.Collection
{
    public class PriceCollection
    {
        [Required(ErrorMessage = "Please enter PriceValue.")]
        [DisplayName("PriceValue")]
        [RegularExpression(@"([-])*[0-9]{1,20}", ErrorMessage = "Value must be a Number.")]
        public float PriceValue { get; set; }

        [Required(ErrorMessage = "Please let's choice Start Date for price of product.")]
        [DisplayName("StartDate")]
        [RegularExpression(@"^\d{2}\/\d{2}\/\d{4}$", ErrorMessage="StartDate is not in the correct format.")]
        public DateTime? StartDate { get; set; }

        [Required(ErrorMessage = "Please let's choice Start End for price of product.")]
        [DisplayName("EndDate")]
        [RegularExpression(@"^\d{2}\/\d{2}\/\d{4}$", ErrorMessage = "EndDate is not in the correct format.")]
        public DateTime? EndDate { get; set; }

        [DisplayName("Status")]
        public bool? Status { get; set; }

        [DisplayName("Notes")]
        [StringLength(200)]
        public string Notes { get; set; }

        [DisplayName("ProductID")]
        public int? ProductID { get; set; }

        [DisplayName("LanguagesID")]
        public int? LanguagesID { get; set; }

        [DisplayName("CurrencyID")]
        public int? CurrencyID { get; set; }

        [DisplayName("PriceID")]
        public int? PriceID { get; set; }
    }
}
